import request from '@/utils/request'

// 查询答题管理列表
export function listQuestion(query) {
  return request({
    url: '/classroom/question/question/list',
    method: 'get',
    params: query
  })
}
// 查询学生答题列表
export function listQuestionAnser(query) {
  return request({
    url: '/classroom/question/question/listAnser',
    method: 'get',
    params: query
  })
}

// 查询答题管理详细
export function getQuestion(id) {
  return request({
    url: '/classroom/question/question/' + id,
    method: 'get'
  })
}

// 新增答题管理
export function addQuestion(data) {
  return request({
    url: '/classroom/question/question',
    method: 'post',
    data: data
  })
}

// 修改答题管理
export function updateQuestion(data) {
  return request({
    url: '/classroom/question/question',
    method: 'put',
    data: data
  })
}

// 删除答题管理
export function delQuestion(id) {
  return request({
    url: '/classroom/question/question/' + id,
    method: 'delete'
  })
}
